package com.memoryangelapplication.global;

import java.util.ArrayList;
import com.memoryangelapplication.model.EventObj;

public class Event_pass {
	
	private static Event_pass mdp;
	private static ArrayList<EventObj> evtData = new ArrayList<EventObj>();
	private static int size;
	private static int notifyIncr=0;
	
	private Event_pass(ArrayList<EventObj> passarr) {
		evtData = passarr;
	}
	
	public static synchronized void setData_pass(ArrayList<EventObj> matchData){
		
		if(mdp==null){
			mdp = new Event_pass(matchData);
		}
		
	}
	
	public static synchronized int getCount(){
		return evtData.size();
	}
	
	public static synchronized void reSet(){
		mdp=null;
	}
	
	public static synchronized ArrayList<EventObj> getData(){
		return evtData;
	}
	
	public  static synchronized int incrementNotify(){
		return notifyIncr;
	}

}
